#include <catch2/catch.hpp>

#include "solution.hpp"

using namespace solution_1024;

TEST_CASE("1024. Video Stitching", "[1024]") {

CHECK(Solution().videoStitching({{-3,1},{-2,2},{-4,9},{3,6},{0,8},{7,12}}, 10) == 2);
CHECK(Solution().videoStitching({{0,1},{1,3},{3,7}}, 7)                        == 3);
CHECK(Solution().videoStitching({{-1,1},{-2,0},{1,3},{3,7}}, 7)                == 3);
CHECK(Solution().videoStitching({{0,1},{6,8},{0,2},{5,6},{0,4},{0,3},{6,7},{1,3},{4,7},{1,4},{2,5},{2,6},{3,4},{4,5},{5,7},{6,9}}, 9) == 3);

}
